﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="RetrieveSets.aspx.cs" Inherits="EWDTAssignment.RetrieveSets" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style21
        {
            height: 20px;
        }
        .style26
        {
            width: 211px;
            height: 20px;
        }
        .style25
        {
            width: 51px;
        }
        .style27
        {
            width: 211px;
        }
        .style28
        {
            height: 20px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <br />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    </p>
    <p>
        &nbsp;</p>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table align="center" style="width:50%;">
                <tr>
                    <td align="left" class="style21">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtbxSetSearch" Display="Dynamic" 
                            ErrorMessage="Please enter a Set ID" Font-Size="Medium" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txtbxSetSearch" Display="Dynamic" 
                            ErrorMessage="Set IDs can only be integer numbers" Font-Size="Medium" 
                            ForeColor="Red" ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
                        <asp:Label ID="lblError" runat="server" Font-Size="Small" ForeColor="#00CCFF"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="center" class="style21">
                        <asp:Label ID="lblSearch" runat="server" Font-Bold="True" Font-Size="Medium" 
                            Text="Set#: "></asp:Label>
                        <asp:TextBox ID="txtbxSetSearch" runat="server"></asp:TextBox>
                        &nbsp;<asp:Button ID="btnSearch" runat="server" onclick="btnSearch_Click" 
                            Text="Search" />
                    </td>
                </tr>
            </table>
            <br />
            <table align="center" style="width:50%;">
                <tr>
                    <td align="center" class="style21" colspan="2">
                        <asp:Label ID="lblMsg1" runat="server" Font-Size="Medium" ForeColor="#9933FF">Please select the Set ID from the following list</asp:Label>
                        <br />
                        <asp:DropDownList ID="ddlSet1" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="ddlSet1_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                    </td>
                </tr>
                <tr>
                    <td align="center" class="style21" colspan="2" 
                        style="border: 1px solid black; ">
                        <asp:Label ID="SetID1" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="left" class="style25" style="border: 1px solid black; width: 10%;">
                        Motherboard</td>
                    <td align="left" class="style27" style="border: 1px solid black; width: 45%;">
                        <asp:Label ID="MB1" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="left" class="style21" style="border: 1px solid black; width: 10%;">
                        CPU</td>
                    <td align="left" class="style26" style="border: 1px solid black; width: 45%;">
                        <asp:Label ID="CPU1" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="left" class="style25" style="border: 1px solid black; width: 10%;">
                        Memory</td>
                    <td align="left" class="style27" style="border: 1px solid black; width: 45%;">
                        <asp:Label ID="RAM1" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="left" class="style25" style="border: 1px solid black; width: 10%;">
                        Graphic Card</td>
                    <td align="left" class="style27" style="border: 1px solid black; width: 45%;">
                        <asp:Label ID="GFX1" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="left" class="style25" style="border: 1px solid black; width: 10%;">
                        HDD</td>
                    <td align="left" class="style27" style="border: 1px solid black; width: 45%;">
                        <asp:Label ID="HDD1" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="left" class="style25" style="border: 1px solid black; width: 10%;">
                        Soundcard</td>
                    <td align="left" class="style27" style="border: 1px solid black; width: 45%;">
                        <asp:Label ID="Sound1" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="left" class="style25" style="border: 1px solid black; width: 10%;">
                        PSU</td>
                    <td align="left" class="style27" style="border: 1px solid black; width: 45%;">
                        <asp:Label ID="PSU1" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="left" class="style25" style="border: 1px solid black; width: 10%;">
                        Casing</td>
                    <td align="left" class="style27" style="border: 1px solid black; width: 45%;">
                        <asp:Label ID="Casing1" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="center" class="style28" colspan="2" 
                        style="border: 1px solid black; ">
                        <asp:Button ID="btnEdit" runat="server" onclick="btnEdit_Click" Text="Edit" 
                            Width="65px" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnDel" runat="server" onclick="btnDel_Click" Text="Delete" 
                            Width="65px" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <p>
    </p>
</asp:Content>
